import { redirect } from "next/navigation"

type UserV1 = {
    id: string,
    email: string,
    fullName: string,
    createAt: string
}

export async function GET() {
    redirect("/api/v2/users");
    const users: UserV1[] = [
        {
            id: "55-61254",
            email: "jsijjc@example.com",
            fullName: "jsijjc",
            createAt: "2025-2-3"
        },
        {
            id: "s1-61254",
            email: "ccisa@example.com",
            fullName: "ccisa",
            createAt: "2024-1-31"
        },
    ];
    return Response.json(users);
}